<?php
	include_once("Login.php");
	
	$conn = new mysqli($host,$user,$passwd, $database)
	or die("SQL connect error: ".mysqli_connect_error());
	
	$body = file_get_contents('php://input');
	$xml = simplexml_load_string($body);

	$id = $xml->id;
	$query = "DELETE FROM Friends WHERE Id='$id'";
	
	mysqli_query($conn, $query);
        
    $result = mysqli_query($conn, $query);
		
	mysqli_close($conn);
?>